* Converted BagOStuff.php from the style of memcached-client.php to the standard...
authorTim Starling <tstarling@users.mediawiki.org>
Sat, 15 Aug 2009 03:45:19 +0000 (03:45 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Sat, 15 Aug 2009 03:45:19 +0000 (03:45 +0000)
commit84b6a177f163f66fad8abec3c999d7e5d9358724
tree92e03b83bd5a0c4cb04d6b0648fdf8d29d4f05f1
parent8b98e4a61bcab92b7368c4a9825feaea0d776e3a
* Converted BagOStuff.php from the style of memcached-client.php to the standard MediaWiki style, including camel case, using protected visibility instead of initial underscore, abstract functions instead of stubs, stylize.php.
* In SqlBagOStuff, ignore errors due to a read-only database, per my comments on CR r42796. Same for LocalisationCache.
* Merged SqlBagOStuff and MediaWikiBagOStuff, that proved to be an awkward and unnecessary generalisation. Use the standard quoting wrapper functions instead of $db->query().
* Implemented atomic incr() and decr() functions for SqlBagOStuff.
* Made incr() and decr() generally work roughly the same as it does in memcached, respecting negative steps instead of ignoring such operations. This allows decr() to be implemented in terms of incr().
* Per bug 11533, in MessageCache.php, don't retry 20 times on a cache failure, that's really memcached-specific and won't be useful for other cache types. It's not really very useful for memcached either.
* Moved MySQL-specific implementations of wasDeadlock() and wasErrorReissuable() to DatabaseMysql.
* Briefly tested page views with $wgReadOnly=read_only=1, fixed an error from Article::viewUpdates(). A CentralAuth fix will be in a subsequent commit.
includes/Article.php
includes/BagOStuff.php
includes/LocalisationCache.php
includes/MessageCache.php
includes/ObjectCache.php
includes/db/Database.php
includes/db/DatabaseMysql.php
includes/db/DatabaseSqlite.php